<template>
  <div>
    <div v-for="(categorys,index) in categorys" :key="index">
        <img :src="categorys.pic">
    </div>
  </div>
</template>
<script>
import {mapState} from 'vuex'

export default{
 
  computed:{
    ...mapState(['categorys'])
  },
  mounted(){
    this.$store.dispatch('getcategorys')
  }
}

</script>
<style lang="stylus" scoped>


</style>